package com.gxa.uhome.mapper;

import com.gxa.uhome.pojo.User;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

/**
 * User: Sanruy Mu
 * Date: 2021/06/07 19:11
 * Description:
 * Version: V1.0
 */
public interface UserMapper {
    Integer add(User user);

    User selectByPhone(String phone);

    List<User> selectUser();

    Integer updateStatus(Integer id , Boolean status);

    User selectById(Integer id);

    List<User> selectAll();

    List<Integer> selectStationName(String stationName);

    List<User> selectByMany(Map<String, Object> map);

    Integer updateLastAcTime(Integer id, Timestamp lastAcTime);

    List<User> selectByPage(Integer page, Integer size);
}